<?php defined('SYSPATH') OR die('No direct access allowed.');
/**
 * Square pagination style
 *
 * @preview  <<  < [1] [2] [3] >  >>
 */
?>
<!-- BEGIN PAGINATION -->
<ol class="pagination">
<?php if ($total_pages>1) : ?>
	<?php if ($first_page): ?>
		<li><a href="<?php echo str_replace('{page}', 1, $url) ?>" title="<?php echo Kohana::lang('pagination.first') ?>">&lsaquo;&lsaquo;</a></li>
	<?php endif ?>
	<?php if ($previous_page): ?>
		<li><a href="<?php echo str_replace('{page}', $previous_page, $url) ?>" title="<?php echo Kohana::lang('pagination.previous') ?>">&lt;</a></li>
	<?php endif ?>
	<?php for ($i = 1; $i <= $total_pages; $i++): ?></li>
		<?php if ($i == $current_page): ?>
			<li class="current"><?php echo $i ?>
		<?php else: ?>
			<li><a href="<?php echo str_replace('{page}', $i, $url) ?>"><?php echo $i ?></a></li>
		<?php endif ?>
	<?php endfor ?>
	<?php if ($next_page): ?>
		<li><a href="<?php echo str_replace('{page}', $next_page, $url) ?>" title="<?php echo Kohana::lang('pagination.next') ?>">&gt;</a></li>
	<?php endif ?>
	<?php if ($last_page): ?>
		<li><a href="<?php echo str_replace('{page}', $last_page, $url) ?>" title="<?php echo Kohana::lang('pagination.last') ?>">&rsaquo;&rsaquo;</a></li>
	<?php endif ?>
<?php endif;?>
</ol>
<!-- END PAGINATION -->